function save() {
    let data = new FormData();
    data.append("name", $("#name").val());
    data.append("value", $("#value").val());
    data.append("uri", $("#uri").val());
    data.append("type", $("#type").val());
    data.append("sort", $("#sort").val());
    data.append("status", $("input:radio[name='status']:checked").val());
    //拿到的图片有可能是一组数据，[0].files[0]选中当前对象的第一个数据
    data.append("file", $("#icon")[0].files[0]);
    let result = myImgAjax("/api/rb/permission/add", data,"post");
    console.log(result);
    if(result.code === 200){
        alert("新增成功（== ^^ ==）！")
        x_admin_close();
        x_admin_father_reload();
    // }else if(result.result == "noLogin"){
    //     // window.open("/html/login.html","_self");
    //     x_admin_close();
    //     x_admin_father_reload();
    }else{
        alert("新增失败！");
    }
}